home *** CD-ROM | disk | FTP | other *** search
- on initialiseGlobals
- global navMenuStatus
- set navMenuStatus to "off"
- end
-
- on openFirstWindow fname
- global whatPCWindow
- if objectp(whatPCWindow) then
- forget(whatPCWindow)
- end if
- set whatPCWindow to window "WhatPC"
- set the windowType of whatPCWindow to 2
- set the fileName of whatPCWindow to the pathName & fname
- set the rect of whatPCWindow to rect(0, 0, 640, 480)
- open(whatPCWindow)
- end
-
- on openFile fname
- global whatPCWindow
- if objectp(whatPCWindow) then
- forget(whatPCWindow)
- end if
- set whatPCWindow to window "WhatPC"
- set the windowType of whatPCWindow to 2
- set the fileName of whatPCWindow to the pathName & fname
- set the rect of whatPCWindow to rect(0, 0, 640, 480)
- open(whatPCWindow)
- showNavMenu()
- end
-
- on openNavigationMenu
- global NavMenuWindow
- if objectp(NavMenuWindow) then
- forget(NavMenuWindow)
- end if
- set NavMenuWindow to window "Nav Menu"
- set the windowType of NavMenuWindow to 2
- set the fileName of NavMenuWindow to the pathName & "navmenu"
- set the rect of NavMenuWindow to rect(0, 0, 192, 480)
- open(NavMenuWindow)
- set the modal of NavMenuWindow to 1
- end
-
- on showNavMenu
- global NavMenuWindow, navMenuStatus
- if navMenuStatus = "on" then
- set navMenuStatus to "off"
- closeNavigationMenu()
- put "menu closed"
- else
- set navMenuStatus to "on"
- openNavigationMenu()
- put "menu open"
- end if
- updateStage()
- end
-
- on closeNavigationMenu
- global NavMenuWindow
- close(NavMenuWindow)
- end
-
- on quitWhatPC
- global whatPCWindow
- if objectp(whatPCWindow) then
- forget(whatPCWindow)
- end if
- quit()
- end
-